package utl.mofen.handler;

import utl.mofen.jsonStreamHandler.HandlerSession;
import utl.mofen.jsonStreamHandler.JSonStreamHandler;

public class LoginHandler extends JSonStreamHandler {
	
	public void doAction() throws Exception {
		HandlerSession session = this.getSession();
		if (session.getAsBoolean("loginOK"))
		{
			this.logger.info("已经登陆,不需要进行登陆!");
		}else
		{
			session.setSession("loginOK", true);
			this.logger.info("登陆成功!");
		}
	}
}
